package mr.ali.videoapp.portal.controller;


import mr.ali.videoapp.portal.model.CollectionUserMony;
import mr.ali.videoapp.portal.service.ICollectionUserMonyService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Mr-ali
 * @since 2025-08-01
 */
@RestController
@RequestMapping("/portal/collectionUserMony")
public class CollectionUserMonyController {
    @Resource
    private ICollectionUserMonyService collectionUserMonyService;

    @GetMapping("/list")
    public List<CollectionUserMony> getCollectionUserMonyList(Integer userId) {
        return collectionUserMonyService.getCollectionUserMonyList(userId);
    }
}
